package com.sike.netty.im.client.handler;

import cn.hutool.core.date.DateUtil;
import com.sike.netty.im.common.command.ListGroupMembersResponseCommand;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * 查询群聊成员响应 handler
 *
 * @author chenssy
 * @date 2023/09/21
 */
public class ListGroupMembersResponseHandler extends SimpleChannelInboundHandler<ListGroupMembersResponseCommand> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, ListGroupMembersResponseCommand msg) throws Exception {
        System.out.println("[" + DateUtil.now() + "]：系统 >>> 群成员有:" + String.join(",",msg.getMemberList()));
    }
}
